import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='HotSearchTag',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tag', models.CharField(max_length=100, unique=True, verbose_name='标签名称')),
                ('click_count', models.IntegerField(default=0, verbose_name='点击量')),
                ('is_hot', models.BooleanField(default=False, verbose_name='是否热门（带火焰标识）')),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'verbose_name': '热门搜索标签',
            },
        ),
        migrations.CreateModel(
            name='SearchHistory',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('keyword', models.CharField(max_length=100, verbose_name='搜索关键词')),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='搜索时间')),
            ],
            options={
                'verbose_name': '用户搜索历史',
            },
        ),
    ]
